import Http from '@/http'


// 获取发电总量以及今日发电量和碳排放
const capacityUrl = '/photovoltaic/getCapacity';
export const capacityApi = function (params) {
    return Http.fetch(capacityUrl, params);
};


// 获取热泵系统,储能SOC
const hotWaterAndSocUrl = '/photovoltaic/getHotWaterAndSoc';
export const hotWaterAndSocApi = function (params) {
    return Http.fetch(hotWaterAndSocUrl, params);
};


// 查询并网点状态总览
const combinedStatusUrl = '/photovoltaic/getCombinedStatus';
export const combinedStatusApi = function (params) {
    return Http.fetch(combinedStatusUrl, params);
};


// 光伏发电功率曲线
const photovoltaicCurveUrl = '/photovoltaic/getPhotovoltaicCurve';
export const photovoltaicCurveApi = function (params) {
    return Http.fetch(photovoltaicCurveUrl, params);
};


// 并网功率曲线
const GCPCCurveUrl = '/photovoltaic/getGCPCCurve';
export const GCPCCurveApi = function (params) {
    return Http.fetch(GCPCCurveUrl, params);
};


// 交流负荷功率曲线
const acLoadCurveUrl = '/photovoltaic/getAcLoadCurve';
export const acLoadCurveApi = function (params) {
    return Http.fetch(acLoadCurveUrl, params);
};


// 直流负荷功率曲线
const dcLoadCurveUrl = '/photovoltaic/getDcLoadCurve';
export const dcLoadCurveApi = function (params) {
    return Http.fetch(dcLoadCurveUrl, params);
};


// 获取设备总数
const deviceNumberUrl = '/photovoltaic/getDeviceNumber';
export const deviceNumberApi = function (params) {
    return Http.fetch(deviceNumberUrl, params);
};


// 中间大图
const wiringDiagramUrl = '/photovoltaic/getWiringDiagram';
export const wiringDiagramApi = function (params) {
    return Http.fetch(wiringDiagramUrl, params);
};

//日每时数据

const dayByHourUrl = "/powerGeneration/dayByHourCurve/"+new Date().getTime() ;
export const dayByHourApi = function (params) {
    return Http.fetch(dayByHourUrl, params);
};
//月每日数据

const monthByDayUrl = "/powerGeneration/monthByDayCurve/" +new Date().getTime() ;
export const monthByDayApi = function (params) {
    return Http.fetch(monthByDayUrl, params);
};
//年每月数据

const yearsByMonthUrl = "/powerGeneration/yearByMonthCurve/"+new Date().getTime() ;
export const yearsByMonthApi = function (params) {
    return Http.fetch(yearsByMonthUrl, params);
};